package com.koron.order.common.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.common.bean.po.OrderLocationPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 工单工作地点表(OrderLocation)表服务接口
 *
 * @author zhouj
 * @since 2022-05-17 10:07:37
 */
public interface OrderLocationService {

    int insertOrUpdate(SessionFactory factory, OrderLocationPo orderLocation);

    int insertOrUpdateBatch(SessionFactory factory, List<OrderLocationPo> orderLocationList);

    int insert(SessionFactory factory, OrderLocationPo orderLocation);

    int insertBatch(SessionFactory factory, List<OrderLocationPo> orderLocationList);

    int update(SessionFactory factory, OrderLocationPo orderLocation);

    int deleteById(SessionFactory factory, String id);

    int deleteByOrderId(SessionFactory factory, String orderId);

    OrderLocationPo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, OrderLocationPo orderLocation, PageQuery pageQuery);

    List<OrderLocationPo> queryList(SessionFactory factory, OrderLocationPo orderLocation);

    List<OrderLocationPo> queryByOrderId(SessionFactory factory, String orderId);

    List<OrderLocationPo> queryByOrderIds(SessionFactory factory, List<String> orderIds);

}
